﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MudEngine.Parsing.AST
{
	public class SwitchSectionNode : AstNode
	{
		public AstNodeCollection Labels { get; private set; }

		public SwitchSectionNode() : base()
		{
			this.Labels = new AstNodeCollection();
		}

		public void AddLabel(CaseLabel label)
		{
			this.Labels.Add(label);
			label.Parent = this;
		}

		public override void AcceptVisitor<C>(IAstNodeVisitor<C> visitor, C ctx)
		{
			visitor.VisitSwitchSectionNode(this, ctx);
		}
	}
}
